package code.hkgolden.android.core;

import code.framework.android.activity.ActivitySupport;
import code.framework.android.data.ApplicationPreference;
import code.framework.android.view.ApplicationViewManager;
import code.hkgolden.android.service.CacheService;
import code.hkgolden.android.service.ChannelParser;
import code.hkgolden.android.service.ContentService;
import code.hkgolden.android.service.DefaultCacheService;
import code.hkgolden.android.service.DefaultContentService;
import code.hkgolden.android.service.DefaultHttpService;
import code.hkgolden.android.service.HttpService;
import code.hkgolden.android.service.XmlPullChannelParser;

import com.google.inject.AbstractModule;

public class HkgoldenModule extends AbstractModule {
	@Override
	protected void configure() {
		bind(HkgoldenContext.class).to(HkgoldenContextImpl.class);
		bind(ApplicationPreference.class).to(HkgoldenPreference.class);
		bind(ApplicationViewManager.class).to(HkgoldenViewManager.class);
		bind(HkgoldenViewManager.class);
		bind(ActivitySupport.class).to(HkgoldenActivitySupport.class);
		bind(ContentService.class).to(DefaultContentService.class);
		// bind(ContentService.class).to(TestContentService.class);
		bind(HttpService.class).to(DefaultHttpService.class);
		bind(CacheService.class).to(DefaultCacheService.class);
		bind(ChannelParser.class).to(XmlPullChannelParser.class);
	}

}
